package com.example.mskefu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mskefu.entity.BrowseRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface BrowseRecordMapper extends BaseMapper<BrowseRecord> {

    @Select("select * from browse_record where userId = #{param1} order by time desc")
    ArrayList<BrowseRecord> getBrowseRecoedByUserId(String userId);
}
